package com.indusfo.spc.mapper;

import com.indusfo.spc.pojo.MatFlow;
import com.indusfo.spc.pojo.MatRepairDete;
import com.indusfo.spc.pojo.MatRepairFlow;
import com.indusfo.spc.pojo.RepairDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 熊冰 物料维修流程采集项目
 * @Date 2019/11/25 9:56
 */
public interface MatRepairDeteMapper {
    /**
     * @Author 熊冰 新增
     * @Date 2019/11/25 9:55
     */
    int insertMatRepairDete(MatRepairDete matRepairDete);

    /**
     * @Author 熊冰 维修
     * @Date 2019/11/25 9:56
     */
    int updateMatRepairDete(MatRepairDete matRepairDete);

    /**
     * @Author 熊冰 查询
     * @Date 2019/11/25 9:56
     */
    List<MatRepairDete> queryMatRepairDete(MatRepairDete matRepairDete);

    /**
     * @Author 熊冰 总数
     * @Date 2019/11/25 9:56
     */
    int countMatRepairDete(MatRepairDete matRepairDete);

    /**
     * @Author 熊冰 判重
     * @Date 2019/11/25 9:56
     */
    int checkMatRepairDete(MatRepairDete matRepairDete);

    /**
     * @Author 熊冰 删除
     * @Date 2019/11/25 9:56
     */
    int deleteMatRepairDete(@Param("matRepairDeteIds") List<Integer> matRepairDeteIds, @Param("dataState") Integer dataState);

    /**
     * 级联删除查询
     */
    List<MatRepairDete> queryMatRepairDeteByMatRepairId(@Param("matRepairId") Integer matRepairId);

    /**
     * 级联删除修改
     */
    int deleteMatRepairDeteByMatRepairDeteId(@Param("matRepairDeteId") Integer matRepairDeteId, @Param("dataState") Integer dataState);

    List<MatRepairDete> queryMatRepairDeteByRepairDetailList(@Param("repairDetailList") List<RepairDetail> repairDetailList);

}